<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!doctype html>
<html>
<head>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <link rel="stylesheet" type="text/css" href="${path}/html/js/js-resource/imgPreview/css/style.css"/>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common/select-plugin.js?v=1"></script>
    <script type="text/javascript" src="${path}/html/js/js-resource/imgPreview/js/lightBox.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/us/company/companyInformationOption.js?v=<%out.print(Math.random());%>"></script>
</head>
<body>
<form id="comp_form" class="form" method="post" action="#" modelAttribute="company">
    <div class="formbody">
        <div class="formtitle" style="margin-top: 0px"><span>基本信息</span></div>
        <table id="companyDesc" align="center" border="0" width="100%" style="font-size: 12px;">
            <tr height="50px">
                <td align="right">所属公司：</td>
                <td align="left">
                        <input type="hidden" name="parentId" id="parentId" value="${company.parentId}"/>
                       <c:if test="${company.parentId==0}">
                            <span style="color: #b52b27">此公司没有所属公司</span>
                        </c:if>
                        <c:if test="${company.parentId!=0}">
                            ${parentCompany.name}
                        </c:if>
                <td align="right">公司名称：</td>
                <td align="left">
                        <input  name="name" id="name" value="${company.name}" type="hidden" />
                        ${company.name}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">公司类型：</td>
                <td align="left">
                        <input  name="compType" id="compType" value="${company.compType}" type="hidden" />
                        ${company.cpCompType.propertyName}
                </td>
                <td align="right">营业执照号：</td>
                <td align="left">
                    <input  name="registerID" id="registerID" value="${company.registerID}" type="hidden" />
                    ${company.registerID}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">注册资本(万)：</td>
                <td align="left">
                    <input  type="hidden" name="registerCapital" id="registerCapital"  value="${company.registerCapital}"/>
                    ${company.registerCapital}
                </td>
                <td align="right">注册币种：</td>
                <td align="left">
                    <input  type="hidden" name="registerCurrency" id="registerCurrency"  value="${company.registerCurrency}"/>
                    ${company.cpRegisterCurrency.propertyName}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">注册日期：</td>
                <td align="left">
                    <input  type="hidden" name="registerDate" id="registerDate"  value="${company.registerDate}"/>
                    <fmt:formatDate value="${company.registerDate}" pattern="yyyy-MM-dd"/>
                </td>
                <td align="right">公司网址：</td>
                <td align="left">
                    <input  type="hidden" name="companySites" id="companySites"  value="${company.companySites}"/>
                    ${company.companySites}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">联系人：</td>
                <td align="left">
                    <input  type="hidden" name="linkmanName" id="linkmanName"  value="${company.linkmanName}"/>
                    ${company.linkmanName}
                </td>
                <td align="right">联系人手机号码：</td>
                <td align="left">
                    <input  type="hidden" name="linkmanPhone" id="linkmanPhone"  value="${company.linkmanPhone}"/>
                    ${company.linkmanPhone}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">公司法人：</td>
                <td align="left">
                    <input  type="hidden" name="master" id="master"  value="${company.master}"/>
                    ${company.master}
                </td>
                <td align="right">法人职务：</td>
                <td align="left">
                    <input  type="hidden" name="masterJob" id="masterJob"  value="${company.masterJob}"/>
                    ${company.masterJob}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">法人证件号：</td>
                <td align="left">
                    <input  type="hidden" name="masterCertNum" id="masterCertNum"  value="${company.masterCertNum}"/>
                    ${company.masterCertNum}
                </td>
                <td align="right">法人证件类型：</td>
                <td align="left">
                    <input  type="hidden" name="masterCertType" id="masterCertType"  value="${company.masterCertType}"/>
                    ${company.cpMasterCertType.propertyName}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">法人职称：</td>
                <td align="left">
                    <input  type="hidden" name="masterJobTitle" id="masterJobTitle"  value="${company.masterJobTitle}"/>
                    ${company.masterJobTitle}
                </td>
                <td align="right">法人手机号：</td>
                <td align="left">
                    <input  type="hidden" name="masterPhone" id="masterPhone"  value="${company.masterPhone}"/>
                    ${company.masterPhone}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">注册地址：</td>
                <td align="left">
                    <input  type="hidden" name="registerProvice" id="registerProvice"  value="${company.registerProvice}"/>
                    ${company.rprovince.province}
                    <input  type="hidden" name="registerCity" id="registerCity"  value="${company.registerCity}"/>
                    ${company.rcity.city}
                    <input  type="hidden" name="registerDistrict" id="registerDistrict"  value="${company.registerDistrict}"/>
                    ${company.rdistrict.district}
                </td>
                <td align="right">运营地址：</td>
                <td align="left">
                    <input  type="hidden" name="operatingProvice" id="operatingProvice"  value="${company.operatingProvice}"/>
                    ${company.oprovince.province}
                    <input  type="hidden" name="operatingCity" id="operatingCity"  value="${company.operatingCity}"/>
                    ${company.ocity.city}
                    <input  type="hidden" name="operatingDistrict" id="operatingDistrict"  value="${company.operatingDistrict}"/>
                    ${company.odistrict.district}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">注册街道：</td>
                <td align="left">
                    <input  type="hidden" name="registerAddress" id="registerAddress"  value="${company.registerAddress}"/>
                    ${company.registerAddress}
                </td>
                <td align="right">运营街道：</td>
                <td align="left">
                    <input  type="hidden" name="operatingAddress" id="operatingAddress"  value="${company.operatingAddress}"/>
                    ${company.operatingAddress}
                </td>
            </tr>

            <tr height="50px">
                <td align="right">联系人办公电话：</td>
                <td align="left">
                    <input  type="hidden" name="linkmanOfficePhone" id="linkmanOfficePhone"  value="${company.linkmanOfficePhone}"/>
                    ${company.linkmanOfficePhone}
                </td>
                <td align="right">邮政编码：</td>
                <td align="left">
                    <input  type="hidden" name="postCode" id="postCode"  value="${company.postCode}"/>
                    ${company.postCode}
                </td>
            </tr>
            <tr height="50px">
                <td align="right" >公司logo：</td>
                <td align="left">
                    <input  type="hidden" name="compLogo" id="compLogo"  value="${company.compLogo}"/>
                    <input  type="hidden" name="fileId" id="fileId"  value="${company.cfCommonFile.fileId}"/>
                    <input  type="hidden" name="url" id="url"  value="${company.cfCommonFile.url}"/>
                    <c:if test="${company.cfCommonFile.url!=null}">
                        <a id="browseBtn"   style="width:45px; height: 28px"><img  style="width:45px; height: 28px" src="${company.cfCommonFile.url}" ></a>
                    </c:if>
                    <c:if test="${company.cfCommonFile.url==null}">
                        logo未上传
                    </c:if>
                </td>
                <td align="right">固定电话：</td>
                <td align="left">
                    <input  type="hidden" name="phone" id="phone"  value="${company.phone}"/>
                    ${company.phone}
                </td>
            </tr>
            <tr height="50px">
                <td align="right">公司传真：</td>
                <td align="left">
                    <input  type="hidden" name="fax" id="fax"  value="${company.fax}"/>
                    ${company.fax}
                </td>
                <td align="right">公司邮箱：</td>
                <td align="left">
                    <input  type="hidden" name="email" id="email"  value="${company.email}"/>
                    ${company.email}
                </td>
            </tr>
            <tr height="120px">
                <td align="right" width="15%" valign="top"><span>备注信息：</span></td>
                <td align="left" width="15%" valign="top">
                    <input  type="hidden" name="remark" id="remark"  value="${company.remark}"/>
                    ${company.remark}
                </td>
                <td align="right" width="10%"></td>
                <td align="left" width="15%"></td>
            </tr>
        </table>
    </div>
</form>
</body>
<script>
    jQuery(document).ready(function($) {
        $.LightBox({speed:500});
    });
</script>
</html>